-- GENERATED SPELL FOR [Ring-Lord Conjurer] --


function spell0_27640(pUnit, Event) --@Charged Skin,Self--
pUnit:FullCastSpellOnTarget(50717,pUnit)
pUnit:RegisterEvent('Sorts_27640', 0, 1)
end

function spell1_27640(pUnit, Event) --@Charged Skin,Self--
pUnit:FullCastSpellOnTarget(59276,pUnit)
pUnit:RegisterEvent('Sorts_27640', 0, 1)
end

function Sorts_27640(pUnit, Event)
local choix_sorts_27640 = math.random(0, 1)
if choix_sorts_27640 == 0 then
pUnit:RegisterEvent('spell0_27640', 1, 1)
end
if choix_sorts_27640 == 1 then
pUnit:RegisterEvent('spell1_27640', 1, 1)
end
end

function mob27640_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_27640', math.random(1500, 3000), 1)
end

function mob27640_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob27640_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob27640_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(27640, 1, 'mob27640_Action')
RegisterUnitEvent(27640, 2, 'mob27640_Leave')
RegisterUnitEvent(27640, 3, 'mob27640_Kill')
RegisterUnitEvent(27640, 4, 'mob27640_Die')
